import request from '@/utils/request'

export function fetchNavigatorList(data) {
  return request({
    url: '/cloud-system/getNavigatorList',
    method: 'post',
    data
  })
}

export function fetchNavigatorOne(data) {
  return request({
    url: '/cloud-system/getOneNavigatorDetail',
    method: 'post',
    data
  })
}

export function createNavigator(data) {
  return request({
    url: '/cloud-system/createOneNavigator',
    method: 'post',
    data
  })
}

export function updateNavigator(data) {
  return request({
    url: '/cloud-system/updateOneNavigator',
    method: 'post',
    data
  })
}

export function deleteNavigator(data) {
  return request({
    url: '/cloud-system/deleteOneNavigator',
    method: 'post',
    data
  })
}

export function lockNavigator(data) {
  return request({
    url: '/cloud-system/lockOneNavigator',
    method: 'post',
    data
  })
}

export function unlockNavigator(data) {
  return request({
    url: '/cloud-system/unlockOneNavigator',
    method: 'post',
    data
  })
}
